GothicOne 0 Posted May 19, 2002 Acivating a trigger with the following in it instantly creates the "OBJECT". e.g. Â On Activation: somebmp = "BMP" CamCreate [9856, 3840, 0] Now, of course, you can CamCreate a crew and tell them to movein. Â Only problem is all the AI that is CamCreated are deaf, dumb and blind! Â They don't see you and they don't respond to the environment. Anyone know how to set them to actually become AI and not useless objects? Here's what I've tried. tank = "BMP" CamCreate [9856, 3840, 0]; tankboss = "SoldierECrew" CamCreate [9856, 3843, 0]; tankgunner = "SoldierECrew" CamCreate [9856, 3842, 0]; tankdriver = "SoldierECrew" CamCreate [9856, 3841, 0]; tankboss moveincommander tank; tankgunner moveingunner tank; tankdriver moveindriver tank; tankboss SetCombatMode "Red"; tankboss SetBehaviour "Combat"; tankgunner SetCombatMode "Red"; tankgunner SetBehaviour "Combat"; Share this post Link to post Share on other sites
SCLZ 0 Posted May 19, 2002 I haven't played round with creating units during gameplay but I think you will have to use the createUnit command (or something like that). You'll find it in the command reference. The units created with camCreate are just empty objects, the troops don't appear to have any AI attached to them. Share this post Link to post Share on other sites
GothicOne 0 Posted May 19, 2002 Actually there are no "create" commands in the Command Reference, Unofficial OpF Command Reference Manual ver. 1.04 downloadable from all the sites. I was not aware of createVehicle or createUnit until today. Share this post Link to post Share on other sites
GothicOne 0 Posted May 19, 2002 I couldn't get createunit to work no way. It kept giving me errors Anyway even if I did how would you give waypoints to a unit that isn't created yet, you can't. So I did this workaround. Placed 3 crew units, as per normal, way off in no mans land out of the way of the mission area and gave them a "stop t" command in their init. Then placed their first waypoint where I want the created vehicle to start then placed the rest of it's waypoints. Made a trigger with create vehicle then moved in all crew members. voila! An ingame created AI vehicle with waypoints. When trigger is activated the vehicle appears the crew are in the tank and heading to the waypoints. Sounds good to me. ;D Share this post Link to post Share on other sites
Bart.Jan 0 Posted May 19, 2002 Something about createUnit : http://www.flashpoint1985.com/cgi-bin....ateunit Share this post Link to post Share on other sites