OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 22jacket on 31 May 2006, 00:25:17
-
Is there a way I can teleport from the ground into an aircraft...so that I can then halo out of the aircraft..back down to ground then go back to the same position and have another go....
-
mak a repeating trigger with radio activatiion, and in onActivation field type "player moveincargo heloname"
-
cheers//..that worked ok...can i just walk up to trigger and it will take me to plane or do i have to keep using radio..
-
you can group the player to the trigger.
-
works a treat..thanks..one last question..lol how do i get 2 or more players to use it..individually..sorry for being a noob..
-
Easiest is to just make two identical triggers on top of each other, and group them to different players. 8)
Otherwise I'd have to start thinking. If you don't like the solution, I can start thinking. Tomorrow. :D
*ambles off to bed*
Wolfrug out.
-
top banana ..many thanks.... ;D
have a good sleep..lol/
-
another solution is to add them an action... like these
loon1 addaction ["Back to the chopper","gobackloon1.sqs"]
and in gobackloon1.sqs
loon1 moveincargo helloname
exit
and the same whit loon2...
its the long and odd way to do it.. but it shows it like an action and not on the radio...
Hope that helped..
-
it's always best to assign an action a name:
_actionName = player addAction ["text","scriptname.sqs"]
Because then, when the action needs to be removed things become much simpler as you can use the action name rather than an index number which can be very unreliable.
player removeAction _actionName
-
The automatic arguments of any action-triggered script are:
;stripttriggeredbyaction.sqs
;
;Unit that has the action
_unitacc = _this select 0
;Unit that activated the action
_unit = _this select 1
;Action index
_actionidx = _this select 2
;To remove, if needed:
_unitacc removeAction _actionidx
... whatever code you need
exit
-
sorry dudes..but the lasat bit was over my head..lol...i can use the simple solution..hhehehehe...many thanks for your help......