Home   Help Search Login Register  

Author Topic: camcreate problem  (Read 1514 times)

0 Members and 1 Guest are viewing this topic.

Offline RaptorRed

  • Members
  • *
camcreate problem
« 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.

Offline tcp

  • Members
  • *
    • Violator Gaming
Re: camcreate problem
« Reply #1 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]

Offline DeanosBeano

  • Addons Depot Staff
  • *****
  • SirDeanosbeano bstowed on me by sui ;)
    • Fraghaus
Re: camcreate problem
« Reply #2 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.
I love ofp

Offline RaptorRed

  • Members
  • *
Re: camcreate problem
« Reply #3 on: 15 Oct 2009, 19:56:38 »
thanks that did the trick, guess ive got  a lot to catch up on  :D