OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: RaptorRed on 14 Oct 2009, 22:38:35
-
Hi ive recently got arma2 after a long break from editing (not since OFP1) im just getting back into it and am having problems getting camcreate to work, I made a simple test where a trigger activates a script (sqf) with on activation line :
call {execVM "bomb.sqf"} bomb.sqf contains:
smoke = "SmokeShellYellow" camCreate [getpos gamelogic1] ;
titleText ["Trigger Works", "PLAIN"] ; where gamelogic1 is a gamelogic with name gamelogic1, now when i activate the trigger i see the txt "Trigger Works" but no smoke is created and no error is given, im sure its something simple but my searching hasnt shown me anything im doing wrong thanks in advance.
-
[getpos gamelogic1] doesn't need to be in brackets. getPos will already return the array or coordinates [x,y,z]
-
Camcreate is no longer used in this context anymore , it is now Createvehicle or createvehiclelocal,there maybe others.I havent got the cofig handy but check your class to be created too as they ave all changed.
-
thanks that did the trick, guess ive got a lot to catch up on :D