OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: punisher on 02 Jan 2004, 21:41:13
-
help!
i have a mp script from the civ RPG/Crime city mod
it makes a yellow car apear at a flag pole if u select the action.
i want a red car to appear at a game logic called AA when you select the action "Take red shitbox"
thank you
-
createunit it.
-
_car = "XXXX" createvehicle getpos YYYY
where "XXXX" is the classname for the vehicle
and
YYYY is the name of the gamelogic
if you have problems with the positioning because of the gamelogic, use an empty marker
the line would then look like
_car = "XXXX" createvehicle getmarkerpos "YYYY"
notice getpos changes to getmarkerpos and the "YYYY" have quotation marks around them
Ideally this should be done only by the server, and if is the case you should be ok with the gamelogic.