OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Darkninja on 30 Jan 2004, 19:41:13

Title: [g] join player;
Post by: Darkninja on 30 Jan 2004, 19:41:13
I want this to work via a spawn script. But I get no AI reactions. He spawns but is braindead and doesn't join my group.

Whats the matter?
Title: Re:[g] join player;
Post by: macguba on 30 Jan 2004, 19:50:16
We need more info - it'll probably help if you post the script.
Title: Re:[g] join player;
Post by: Artak on 30 Jan 2004, 20:23:04
I'll bet my money on that you haven't named the created unit in the spawn script properly.
But as macman there said..
Title: Re:[g] join player;
Post by: Darkninja on 30 Jan 2004, 22:42:35
g="EGeneral" createvehicle getpos player; [g] join player;
Title: Re:[g] join player;
Post by: macguba on 30 Jan 2004, 23:12:55
Ah well, there we are.    A classic case of "using a command that looks like its the right one but isn't."   Don't use createVehicle, that's more for like creating empty vehicles.   When you want to spawn a working AI unit use createUnit instead.  

Check the online command reference for a couple of examples.