SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > SRB2 Discussion > Bug Reports

Thread Tools Search this Thread
Old 1 Week Ago   #1
"It's ok, I like you too!"
Flame's Avatar
Default Lua MobjDeath hook vs Intermission Screen

The Lua Hook MobjDeath can trigger on the intermission screen.
And you can get the message:
This can only be used in a level!
Here's some example code to try for yourself:
addHook("MobjDeath", function(mo)
	if mo and mo.valid
	and mo.player and mo.player.valid
		print("Something Funny")
For added context, it errors at the "if mo and mo.valid" line.
Consider giving me a follow on Twitter!
  〃 ∩ ∧_∧
  ⊂⌒( ・ω・)
  `ヽ_っ_/ ̄ ̄ ̄/

Last edited by Flame; 1 Week Ago at 02:51 AM.
Flame is offline   Reply With Quote
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 11:21 PM.

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