Home   Help Search Login Register  

Author Topic: Problem with addaction  (Read 879 times)

0 Members and 1 Guest are viewing this topic.

seanver

  • Guest
Problem with addaction
« 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?
« Last Edit: 13 Oct 2002, 18:57:43 by SeAnVeR »

Offline uiox

  • Contributing Member
  • **
Re:Problem with addaction
« Reply #1 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

seanver

  • Guest
Re:Problem with addaction
« Reply #2 on: 13 Oct 2002, 20:10:03 »
Thank u very much