OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ding on 26 Jun 2005, 09:19:22

Title: CamCreate question
Post by: Ding on 26 Jun 2005, 09:19:22
Sorry if im annyoing anyone with so many questions recently but i was trying to get the CamCreate command to work, and a managed to spawn a western soldier in front of me by doing
Soldier1 = "SoldierW" CamCreate Getpos Player

and sure enough a western soldier is spawned, but the problem i get is that when he is spawned he is completely useless as he dosnt move or shoot he just stands there and can be killed,

How do i make him active?, because what i tried to do was [Soldier1] join Player, but no he is still inactive.
Title: Re:CamCreate question
Post by: bedges on 26 Jun 2005, 09:39:00
camcreate is usually used for static objects. what you want is the createunit (http://www.ofpec.com/editors/comref.php?letter=C#createUnit) command. ;)