Hi All,
I am making a Co-Op mission where the players have to find an injured pilot and bring him back to a M.A.S.H. unit. I have created a script that will place the pilot in one of five spots at the beginning of the mission (for replay value), but I am running into a few snags:
1. When the pilot is placed at one of the five markers, he will try to crawl back to marker 1 (which is where he was initially dropped down in the editor). I want the pilot to stay at the marker he is placed at. Any ideas?
2. There is trigger that causes the pilot to join the group (and initially the pilot sat smack dab in the middle of it). I need to move it around to reflect the random marker (1 through 5) that the pilot is placed at. Can triggers be affected by the [setpos] command? Can they be moved around like markers?
Any help would be much appreciated.
Regards,
Shrapper
P.S.
If anyone cares, below is the script used to place the pilot.
;########## HIDE.SQS #############
;This script will roll a random real number (i.e. 2.3452) between 0 and 5. The result will ;be used to select 1 of 5 initial hiding spots for the downed pilot. This adds replay ;value.
_roll = (random 5)
;If the roll is equal to or less than 1, the pilot will be placed at the "Hide1" marker
? (_roll) <= 1: pilot setpos [7090.13, 3252.89, 0]; Hint "I am at hide1"; goto "END"
;If the roll is equal to or less than 2, the pilot will be placed at the "Hide2" marker
? (_roll) <= 2: pilot setpos [6990.48, 3256.89, 0]; Hint "I am at hide2"; goto "END"
;If the roll is equal to or less than 3, the pilot will be placed at the "Hide3" marker
? (_roll) <= 3: pilot setpos [6890.47, 3182.49, 0]; Hint "I am at hide3"; goto "END"
;If the roll is equal to or less than 4, the pilot will be placed at the "Hide4" marker
? (_roll) <= 4: pilot setpos [6906.04, 3052.92, 0]; Hint "I am at hide4"; goto "END"
;If the roll is equal to or less than 5, the pilot will be placed at the "Hide5" marker
? (_roll) <= 5: pilot setpos [7128.86, 2975.86, 0]; Hint "I am at hide5"; goto "END"
hint "Pilot has been placed."
#END
exit