somebody help

redhot69

amongus
this script is not working
addHook(playerthink,function(player)
if player.mo.skin == "movieknux"
and player.mo.state == S_PLAY_GLIDE then
P_InstaThrust(player.mo, player.mo.angle, skins[player.mo.skin].normalspeed+20 *FRACUNIT)
end
end)
 
The line with and player.mo.state == S_PLAY_GLIDE then should be after the if statement on the previous line.
 
like this?
addHook(playerthink,function(player)
and player.mo.state == S_PLAY_GLIDE then
if player.mo.skin == "movieknux"
P_InstaThrust(player.mo, player.mo.angle, skins[player.mo.skin].normalspeed+20 *FRACUNIT)
end
end)
Post automatically merged:

show me how the full script looks like
Post automatically merged:

The line with and player.mo.state == S_PLAY_GLIDE then should be after the if statement on the previous line.
or like this
addHook(playerthink, function(player)
if player.mo.state == S_PLAY_GLIDE then
if player.mo.skin == "movieknux" then
P_InstaThrust(player.mo, player.mo.angle, skins[player.mo.skin].normalspeed + 20 * FRACUNIT)
end
end)
 
Last edited:
like this?
addHook(playerthink,function(player)
and player.mo.state == S_PLAY_GLIDE then
if player.mo.skin == "movieknux"
P_InstaThrust(player.mo, player.mo.angle, skins[player.mo.skin].normalspeed+20 *FRACUNIT)
end
end)
Post automatically merged:

show me how the full script looks like
Post automatically merged:


or like this
addHook(playerthink, function(player)
if player.mo.state == S_PLAY_GLIDE then
if player.mo.skin == "movieknux" then
P_InstaThrust(player.mo, player.mo.angle, skins[player.mo.skin].normalspeed + 20 * FRACUNIT)
end
end)
Lua:
addHook(playerthink,function(player)
 if player.mo.skin == "movieknux" and player.mo.state == S_PLAY_GLIDE then
  P_InstaThrust(player.mo, player.mo.angle, skins[player.mo.skin].normalspeed+20 *FRACUNIT)
 end
end)
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top