Search the Community
Showing results for tags 'setunitpos'.
Found 1 result
-
Hello guys, In the mission Editor, I often put enemy sniper or rpg on roof of buildings, Unfortunately they are always fast detected and killed before to be a real menace. I use this dostop true or disable ai move and I also use setunitpos to select the stance. If I Iet the vanilla ai system, they just go prone when the detect enemy, and can’t fire through the window or from the roof… I would like to make a little scrips lunched on the AI initialization field, or from a trigger to make an ambush like situation to make my AI switch from down to middle just a little time to firing and hide again for a certain time. I was thinking to something like this: (sorry I am not aware about the syntax) _myunit setunitpos “down†Sleep random [ 30, 50] <- Wait random time from 30 to 50 sec _myunit setunitpos “middle†Sleep random [ 5, 10] (the time to select a target and dofire, and hide again) #loop I am sure that if it works it can add a lot immersion in hostile zone. Please if someone can help me in syntax for the script and for the initialization to run an maybe add a variable in the timing… Thanks for reading. Cheers
- 8 replies
-
- setunitpos random sniper
- random
-
(and 4 more)
Tagged with: