last weird question from lizard

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

last weird question from lizard

Post by lizardkid »

yes this is my FINAL QUESTION, might as well have made this script a community project lol.

ok the idea is to have the guy who is threaded aim at the location given o the thread and shoot until kingdom comes. so far any guy i tell to do this does exactly this:

Turns and tenses, aiming.
Waits until i give the order to HOLD or REGROUP, then fires off one barrage (1 shot for sniper/garand, about 10 for anything else)
then follows the HOLD or REGROUP order.

which makes NO SENSE to me how it happens. i've tried throwing thread calls to HOLD and REGROUP at every imaginable point in this thread, and it wont work.

Code: Select all

shooter local.target:

while(level.squadIsCommandable == TRUE)
{
self turnto local.target
self exec global/aimat.scr local.target
iprintln "AIMING"
self waittill animdone
self exec global/shoot.scr
iprintln "FIRING!"
}
end
none of the iprintln's fire... but they shoot and aim ?????????
HELP! this is a nightmare!
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Re: last weird question from lizard

Post by Rookie One.pl »

Code: Select all

while(level.squadIsCommandable == TRUE)
There's no such thing as TRUE in MoHAA scripting. Everything != 0 is considered true.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

no no, i set it that way purposely, that part works in other threads. but i'll try replacing it. might as well for convention anyway.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Presumably the error is somewhere else, not in those few lines you posted :?
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

found it, timing error :oops:
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Post Reply