OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
We need more info - it'll probably help if you post the script.
-
I'll bet my money on that you haven't named the created unit in the spawn script properly.
But as macman there said..
-
g="EGeneral" createvehicle getpos player; [g] join player;
-
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.