Search found 7 matches

by c_los
Sun Jul 22, 2007 5:51 pm
Forum: Scripting
Topic: Destroy an object
Replies: 5
Views: 690

Code: Select all

removeclass actor
i know that that removes all ai from map... im not sure if it works with more specific classes further down the tree though :/
by c_los
Sun Jul 22, 2007 5:40 pm
Forum: Scripting
Topic: entity under crosshair
Replies: 6
Views: 1314

But couldn't I do something along the lines of the 'flashlight' thing and just check what it isTouching and get the returned entity?
by c_los
Fri Jul 13, 2007 4:56 pm
Forum: Scripting
Topic: breaking a thread
Replies: 1
Views: 437

breaking a thread

I'm not sure if this would work:

Code: Select all

local.x = true
thread do_if_var_x_isnt_true local.x
...
do_if_var_x_isnt_true local.x
if(local.x)
  end
$player iprintln "local.x isnt true!"
end
Isn't there a way to break; out of a thread like in a c function?
by c_los
Thu Jul 12, 2007 8:57 pm
Forum: Scripting
Topic: entity under crosshair
Replies: 6
Views: 1314

entity under crosshair

Is there a way to get the $targetname of an entity under the crosshair (such as a cube script_object)? I know there is a command to get a shader under the crosshair :/
by c_los
Thu Jul 05, 2007 10:59 pm
Forum: Scripting
Topic: Moh Menu
Replies: 12
Views: 1006

well, i dont now much about the ui files, but for the random selection of a player skin you just have to generate a random number and make a case for each model you need-


level waittill spawn
thread pick_model
...

pick_model:
local.model_choices = ## // however many models choices you have
local ...
by c_los
Tue Jul 03, 2007 10:00 pm
Forum: Scripting
Topic: Preventing Bobbing and Footsteps
Replies: 3
Views: 453

Thanks, very much- I believe I've fixed it :D
by c_los
Tue Jul 03, 2007 8:10 pm
Forum: Scripting
Topic: Preventing Bobbing and Footsteps
Replies: 3
Views: 453

Preventing Bobbing and Footsteps

Hello, all- I've been ghosting around and I've been able to make a few small mods for myself. I've got some experience with Java and the MOH script- Just throwing that out there.
I searched through the forums and couldn't find anything about preventing the player from making footsteps (aside from ...