Home   Help Search Login Register  

Author Topic: Foolish Question  (Read 928 times)

0 Members and 1 Guest are viewing this topic.

netta1234

  • Guest
Foolish Question
« on: 17 Jul 2004, 01:15:57 »
how do i addaction with a script? not with a trigger

netta you r a fucking noob
« Last Edit: 17 Jul 2004, 01:16:47 by netta1234 »

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Foolish Question
« Reply #1 on: 17 Jul 2004, 01:49:15 »
Just like you would do it in a trigger?

Quote
unit addAction action
Operand types:
    unit: Object
    action: Array
Compatibility:
    Version 1.1 required.
Type of returned value:
    Nothing
Description:
    Create an action. Action ID should be returned, but due to bug it is not. Action ID should be returned, but due to bug it is not. To determine action ID use following algorithm: first action added to given vehicle has ID zero, next has ID one, etc.

Example:
    player addAction ["Hello", "hello.sqs"]

What seems to be your problem? It shouldn't be any different to add an action in a script than it is in a trigger.
Not all is lost.

netta1234

  • Guest
Re:Foolish Question
« Reply #2 on: 17 Jul 2004, 03:02:55 »
can you make the code with out Exsambles?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Foolish Question
« Reply #3 on: 17 Jul 2004, 11:47:08 »
The code is the same whether you put it in a trigger or a script.    I suspect you are not sufficiently familiar with scripts:   read snYpir's Friendly Intro to Code Snippets and Johan Gusafsson's Scripting Guide, both in the Ed Depot.
Plenty of reviewed ArmA missions for you to play

netta1234

  • Guest
Re:Foolish Question
« Reply #4 on: 17 Jul 2004, 15:08:55 »
nice i got it to work