OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Kilo11 on 24 May 2005, 23:55:30

Title: Adding Multiplayer Action
Post by: Kilo11 on 24 May 2005, 23:55:30
Im having a bit of trouble trying to add an action that ALL players could use while in a MP game.  

I simple want an action that will bring up a target (setting dammage to 0)

How could I do this?  Sorry this is simple noob question...but I have been editing for 4 years and some things slip my mind or I never learn them lol.
Title: Re:Adding Multiplayer Action
Post by: Kilo11 on 25 May 2005, 18:23:20
Anyone :'(
Title: Re:Adding Multiplayer Action
Post by: Terox on 25 May 2005, 20:03:26
INIT.sqs

tx_target = Player addaction ["Make target","target.sqs"]

target.sqs

tx_target1 = "TARGET" createvehicle POSITION"



where TARGET = classname of object you want to create
where POSITION = location where you want the target created
Title: Re:Adding Multiplayer Action
Post by: hermano on 06 Jul 2005, 16:19:23
If that action is added in a script make sure that script runs on all clients.