I waypointed into an elevator in Enemy Territory on 2 floors, Connected waypoints in both floors.
I added flag: door to activate elevator.
Bidirectional connections lead into elevator but bots won't enter...
ET map is antarctic_base
Jump to content
The elevator door in antarctic_base 2nd floor is open,
You +activate ingame to move down to first floor(door closes).
Door opens right away below(I added facing to exit), Door closes after a few Seconds and
So, I added one-directional connection going down elevator,
A waypoint in top elevator with:
waypoint_setproperty paththrough UseSwitch_PT:elevator
I need bots to +activate in elevator: I added flag: door.
I'm using script in antarctic_base_goals.gm:
Door1Status = 0, //door is closed initially
Enabled = true,
Priority = 0, //always set to 0 when using path through
WaypointName = "door_1switch",
Timeout = 2000,
AimPosition = Vec3(3826.125, -6926.589, 622.895), // Optional 0.8x only, use /bot aim_pos to get aim vector. Replaces the unreliable waypoint facing.
Wait = function() // optional. used to have the bot wait a bit for slow moving doors / elevators
if ( Map.Door1Status == 1 )
//wait 1.5 secs while the door opens
//always return false unless the door is open:
Door1_Moving = function ( trigger )
if ( trigger.Action == "opening" )
Map.Door1Status = 1; //open
Map.Switches.door1.Enabled = false;
//print("door is opening");
Map.Door1Status = 0; //closed
Map.Switches.door1.Enabled = true;
Works well except most bots don't +activate to lower elevator,
I know it's difficult, but you should read all wiki pages about scripting and try to learn at least the functions OnMapLoad, OnTrigger and SetAvailableMapGoals. The game is unplayable if bots don't have any goals.
If you attach here your waypoints files, I could help you with the elevator.
0 members, 0 guests, 0 anonymous users