SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Editing > Editing Help

Reply
 
Thread Tools Search this Thread
Old 07-17-2018   #1
Lion Sora
SRB2 Freeplay Owner
 
Lion Sora's Avatar
Default Lua Help - Inf Lives (Or giving player 99 lives on death)

i'm always having trouble and i'm very new to lua, but every time i try to put in the script, it wont run, here is what i was putting

Code:
local function inflives
    CONS_Printf(p, "Player has died")
	P_GivePlayerLives(player_t player, 99)
end

addHook("PlayerSpawn", function(p)inflives(p))
Edit: Never mind, i got it working now
__________________
Creator of SRB2 FreePlay, the SRB2 server for anyone and everyone
Mod is being publicly tested

Last edited by Lion Sora; 07-18-2018 at 10:44 AM.
Lion Sora is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:33 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.