OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mike on 06 Nov 2002, 10:37:57

Title: addAction for only 1 player
Post by: Mike on 06 Nov 2002, 10:37:57
how do u addAction for different individual players?
Title: Re:addAction for only 1 player
Post by: Tomb on 06 Nov 2002, 23:06:50
   :o ??? not sure I really see yer target, buddy (wtf, I never do  ::) ;D ).
uuuhm, howsabout som'n like this (we need a trigger and a scroll for this example) :

Say, we name the goofyhead "GOOF" (stop staring at me like that!!  :hmm: ),
then the action we wanna add could be visible (in the yellow action menu) as :

   "Pull out yer teeth" ( :beat: )

and when used, the "GOOF" will see a red screen and get a damage of 0.7  :-X ;D

Here comes the trigger then (the "on activ." field) :

Outch = GOOF AddAction  ["Pull out yer teeth", "Outch.sqs"]

Right, that wuz the trigger. Then we need to create the scroll (or script  :P ::) )

Open up NOTEPAD and type in this lot :

GOOF SetDammage 0.7; GOOF RemoveAction Outch; exit


Select *ALL FILES* when saving, save as "Outch.sqs" and save to :

 OFP / Users / YerName / Missions / NameOfMission-folder  :o ;)


Yup!  That should do it allright, m8

Laterz  :-*


Title: Re:addAction for only 1 player
Post by: Mike on 07 Nov 2002, 03:07:39
:cheers: