OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: seanver on 13 Oct 2002, 18:55:12

Title: Problem with addaction
Post by: seanver on 13 Oct 2002, 18:55:12
I have a trigger, with this condition: aP in bus1

And the on activation field has:

walkman=aP addaction ["Turn your walkman on","walk.sqs"]

But when aP gets into the bus, the action doesn't show up. But the condition is true -because I have other with the same and it works-. And which is more, if I put in the condition field "true" the action shows up. So is there any problem with actions when inside a vehicle?
Title: Re:Problem with addaction
Post by: uiox on 13 Oct 2002, 19:37:45
When get in Player or AI lose action, replace by vehicle's action.
So add action to vehicle when player gets in.
One trigger

activation Player != vehicle (player)
On activation : index = vehicle (player) addaction[yourwlakman bidule] ; curvehicle = vehicle (player)

Second

activ : player == vehicle (player)
On activ : curvehicle removeaction index
Title: Re:Problem with addaction
Post by: seanver on 13 Oct 2002, 20:10:03
Thank u very much