OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: RaptorRed on 14 Oct 2009, 22:38:35

Title: camcreate problem
Post 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 :
Code: [Select]
call {execVM "bomb.sqf"} bomb.sqf contains:
Code: [Select]
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.
Title: Re: camcreate problem
Post by: tcp on 15 Oct 2009, 01:12:30
[getpos gamelogic1] doesn't need to be in brackets. getPos will already return the array or coordinates [x,y,z]
Title: Re: camcreate problem
Post by: DeanosBeano on 15 Oct 2009, 11:55:39

 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.
Title: Re: camcreate problem
Post by: RaptorRed on 15 Oct 2009, 19:56:38
thanks that did the trick, guess ive got  a lot to catch up on  :D