Hey guys, i'm totally lame at scripting and i want to change it. First thing need to know is how to attach an object to a script in level.c, than i'd like to know, how make VC to Rush, and to not shoot, but only attack with bayonet. Thanks for answers :)
Where killer is name of object in editor and killer.c is script
2. Try to use
void SC_P_Ai_EnableShooting(dword pl_id, BOOL enable);
This function will enable/disable shooting for specified player. You can use it in player script (AI script). But I think if you disable shooting, they will not attack by bayonet, this is not supported by game engine. But you can try it.
Well it looks like i will have to make VC shoot, but theres still a question, how to make VC Rush? You know, just run at you. And it would be best, if the would not shoot very much in that rush, so they'll be not so much lethal
void SC_P_Ai_Go(dword pl_id, c_Vector3 *vec);
This function will send the AI to the specified place vec. AI in the battle mode will move there, but it is possible it will change it’s target in the battle! There is also a possibility the AI will block somewhere and it won’t go – for the script mode you should check periodically if the AI is moving.
Everything is in SDK manual. It is better to use this function for all AI in coop.c in server tick, or also you can use it in AI script but you need to use it after every restart, so modification of script (checking of gPhase and use of this command after every restart) is needed.
Okay, Okay, Okay, not so fast
1. Where (in what script) and how to define c_Vector3? I found something in Vietcong Scriting html document, but it doesn't say very much.
And is it possible to make more than one Vector3?
2. "but you need to use it after every restart, so modification of script (checking of gPhase and use of this command after every restart) is needed.", what modification have i to do?