Can you set runspeed on a player like you can with scale and gravity?
I need to wipe off the modding rust
Moderator: Moderators
jv_map wrote:Glueing a trigger to a player and waiting for it to be triggered is an option... might be easiers ways but I'm not aware of a fully functioning one.
Runspeed can be set via weaponcommand (runspeed is a weapon property)
what about unarmed?Runspeed can be set via weaponcommand (runspeed is a weapon property)
Code: Select all
spawn_listener:
for($player[local.i] = 1; $player[local.i] < 32; $player[local.i]++)
{
local.curPlayer = $player[local.i]
local.curPlayer waittill spawn
// code
}Jv, you are wrong.jv_map wrote:Glueing a trigger to a player and waiting for it to be triggered is an option... might be easiers ways but I'm not aware of a fully functioning one.
No I am not wrongRookie One wrote:Jv, you are wrong.This doesn't work. You're using this in your bots and notice that the bots start spawning right after you choose the team, not after choosing the weapon and spawning physically. That's because the trigger is activated right after choosing the team and there's a direct jump from stage 2 to stage 3.
Code: Select all
waitTillJoinGame:
while (self.dmteam == "spectator" || !isAlive(self))
waitframe
local.trigger = spawn trigger_multiple origin self.origin
local.trigger setsize ( -16 -16 -16 ) ( 16 16 16 )
local.trigger waittill trigger
self thread global/enemyterritory/class_handler.scr::determineClass
self thread waitTillDeath
end