HG-Bonfire
New Member
- Reaction score
- 22
k in a response to this request. I decided to try and conquer the walking under bridges problem, and I think im close to getting the wooden bridges to work! Heres the idea, when a unit enters a region next to the bridge, the bridge gets replaced by a dummy unit which looks identical to it. When the unit enters another region, the dummy unit is removed and the bridge is placed again. Now unfortunatly due to a bridge modeling thing, only the wooden bridge can sucessfully do this.
heres the triggers
and
The only problem is that no matter how much i lower the flying height of the unit, it is floating above where its supposed to be. Is it possible to get it to go lower? and the trigger function Animation - Change flying height doesnt seem to be doing anything.
heres the triggers
Code:
Initialization
Events
Map initialization
Conditions
Actions
Set Bridge = Short Wooden Bridge (Horizontal) 0000 <gen>
Set Pointof_Bridge = (Position of Short Wooden Bridge (Horizontal) 0000 <gen>)
Code:
Bridge On
Events
Unit - A unit enters Enter 1 <gen>
Unit - A unit enters Enter 2 <gen>
Conditions
Actions
Destructible - Remove Bridge
Unit - Create 1 Bridge for Neutral Passive at Pointof_Bridge facing 270.00 degrees
Set FakeBridge = (Last created unit)
Animation - Change FakeBridge flying height to -2000.00 at 0.00
Trigger - Turn off (This trigger)
Trigger - Turn on Bridge Off <gen>
and
Code:
Bridge Off (initially off)
Events
Unit - A unit enters Exit 1 <gen>
Unit - A unit enters Exit 2 <gen>
Conditions
Actions
Unit - Remove FakeBridge from the game
Destructible - Create a Short Wooden Bridge (Horizontal) at Pointof_Bridge facing 180.00 with scale 1.00 and variation 0
Set Bridge = (Last created destructible)
Trigger - Turn off (This trigger)
Trigger - Turn on Bridge On <gen>
The only problem is that no matter how much i lower the flying height of the unit, it is floating above where its supposed to be. Is it possible to get it to go lower? and the trigger function Animation - Change flying height doesnt seem to be doing anything.