PDA

View Full Version : Mission Variables



Bigjoe11a
10-18-2006, 03:31 PM
This is the first Time I can't get them to work. I set Var#1 to 0 and then I try to add 1 to it. and it doesn't work. Heres my events.

What am I doing wrong.



Event 0: Setup

Pre-Mission event

Actions:

Set Mission Var#1 to 0
Execute WAC
Hide Waypoints
Show Win Subgoal 1

Event 1: 5 1 goes for a ride

Delay event 3 seconds

Triggers:

SSN 10000 is within area 1
Actions:

Change Group 4 AI : combat speed = 40 km/h
Change Group 4 AI : patrol speed = 40 km/h
Redirect group 4 to waypoint 8 - 0

Event 2: Hummer on patrol

Triggers:

Group 4 reaches waypoint 8, 7
Actions:

Change Group 4 AI : combat speed = 25 km/h
Change Group 4 AI : patrol speed = 25 km/h

Event 3: Call Team Mates

Delay event 5 seconds

Triggers:

Group 4 reaches waypoint 8, 10
Actions:

Teleport group 7 to target 1

Event 4: Change AI for Team Mates

Triggers:

Event 3 has been triggered and
SSN 10000 is within area 3
Actions:

Change Group 7 AI : do not guard
Change Group 7 AI : not blind
Redirect group 7 to nearest waypoint in list 127
Change Group 7 AI : Yellow Alert
Show Waypoints

Event 5: Change variable 0 to 1

Triggers:

SSN 10000 has reached waypoint 1, 1
Actions:

Increment Mission Var#1 by 1
Hide Waypoints

Event 6: Send Hummer to other town

Delay event 3 seconds

Triggers:

SSN 10000 is within area 3 and
Mission Var#1 is equal to 1
Actions:

Change Group 4 AI : AI state to Follow Waypoint
Change Group 4 AI : combat speed = 50 km/h
Change Group 4 AI : patrol speed = 50 km/h
Redirect group 4 to waypoint 12 - 0


For some reason I can't get event 5 to work. any ideas

Thank you

Bluetiereign
10-18-2006, 05:34 PM
Sometimes using the WAC to change Variables works when using MED doesn't.

Bigjoe11a
10-18-2006, 06:07 PM
Yes, you can but some thing was stoping it from working. I fix it

DON'T set variables in events as Pre Mission Events. The just uncheck it and it worked. So thats a don't do option.

When setting an event. and if you want to set it up as a pre mission event. You can do that. You just can't set variables in a pre mission event

Thanks

Reaper
10-18-2006, 10:20 PM
some times there is an issue when using event o with some triggers. Try and set another event in the 0 slot so the premission event moves to event 1. Then see if the evnt works then

Bigjoe11a
10-18-2006, 11:34 PM
Thanks any way reaper. I fix it. I had the event set as pre mission event. I just uncheck that and it works find. You just can't set variables in a pre mission event