OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: McFinnish on 02 May 2004, 15:43:15

Title: Okay, here I go again, shells
Post by: McFinnish on 02 May 2004, 15:43:15
How can I create an shell125 to car? I want to make a carbomb and don't have no clue... Tried already from commandreference 1.8.
Title: Re:Okay, here I go again, shells
Post by: Artak on 02 May 2004, 15:53:17
You name the car and use the camcreate command. For example

bomb1 = "shell125" camcreate getpos myturbominicooper

or in as script you should use a local variable to name the shell. For example

_bomb1 = "shell125" camcreate getpos poorbastardscar

if it's for multiplayer you must tell ofp to only create the shell on server, otherwise there will be so many shells as there are players. For example

Insert a gamelogic and name it as server. then in a script
?!local server: _bomb1 = "shell125" camcreate getpos turbomegascoda
or in a trigger
condition: !local server
on activation: bomb1 = "shell125" camcreate getpos fordsierrarules