OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: The-Architect on 23 Sep 2004, 11:58:52
-
Thanks to Macguba for explaining what's to be done about dodgy or difficult tutorials. ;D
I want to learn addaction.
I found this tutorial in the Ed depot,
Addaction removeaction by uiox
I have no idea what to do with it, nor is there a readme or explanation.
Can anyone help?
Cheers.
-
Hmm, it would seem he just added an example mission, running scripts with addaction commands inside them.... However, I don't see any comments for any of the scripts..
If you would like, I'll write an addaction tutorial for you.
-
I'd be chuffed if you would fella.
The one by uiox is pretty good if you alrerady know what your doing, but pretty useless if you don't :o
Using radios to trigger triggers could be another 1 that perhaps needs revised, 1 that covers only bein able to use a radio in a certain area, ie. where a radio is placed would be top drawer.
-
hey its pretty easy altough I self dont know how to make an addaction command the runs a script with parameters. This is how you run a script with no parameters:
1. make a trigger
2. in the on activation put:
On Activation: unitname addaction ["kill myself!","killself.sqs"]
thats how you type it. But if you do it like this, or the script does not contain a removeaction line modify it like this:
On Activation: action1=unitname addaction ["kill myself!","killself.sqs"]
On Deactivation: unitname removeaction action1
Eh I hope it helps you!
-
On the subject of addaction..
Very few people seem to know about this..
But..
acction1 = this addaction ["Expode self",{bomb1="laserguidedbomb" camcreate getpos this}]
You can of course change that camcreate code, but it works on lots of stuff.. An usfull example is :
acction2 = this addaction ["Expode self",{[guy1,guy2,this] exec "script.sqs"}]
;)
- Ben
-
you can do that? i thought it was only eventhandlers...
-
Argh.. Your correct! I keep forrgeting about that..
- Ben
-
so is runniong scripts with parameters possible? Would be very useful.
-
not in addaction
but you can with eventhandlers