Waiting for a thread to end?

Post your scripting questions / solutions here

Moderator: Moderators

User avatar
Butch
Lieutenant Colonel
Posts: 398
Joined: Fri Jan 24, 2003 11:30 am

Post by Butch »

mohaa_rox wrote:THis works for an AI:

$stupidAI waitexec global/standstill.scr
OR
$stupidAI waitexec global/disable_ai.scr

Right?

And a driveable tank:

$mytank waitthread global/vehicles_thinkers.scr::players_tank

Mountable jeep:
$myjeep waitthread global/vehicles_thinker.scr::player_jeep_controller
but could you do a jeep where you have a BAR instead of a 30 cal?
PFC.Butch
B Company, 2nd Ranger Battalion
US Army
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Well, change the model of the 30cal to the bipod BAR.
Live to map, not map to live.
-mohaa_rox, .map
moderator
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Bjarne BZR wrote:Oh, and I found a command named 'throw( String label )' with the chrystal clear explanation: "Throws to the specified label.".

As my guess here is that its not an Exception throw, what is it? Anyone?
Hmm well possibly it's just another goto command.

It may also be an exception throw, since try and catch are mentioned in the script files.txt file. I have no idea how to use these commands though, I also don't know if they work at all :?
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Hey! Your right! There is a try / catch defined! ( I'm a bit blind sometimes )
Admin .MAP Forums
Image
Head above heels.
Post Reply