Go Back   Savage 2: A Tortured Soul Forum > Savage 2 Modding > Documentation

Notices

Documentation Post useful tutorials and other informative material.

Reply
 
Thread Tools Display Modes
Old 05-03-2010, 11:49 PM   #1
Old55

Old55's Avatar
 
Join Date: Jun 2009
Posts: 2,586
Thanks: 14
Thanked 428 Times in 209 Posts
Default RegisterEntityScript

Tell me some more about this. I only know it from the duel maps. That calls from 'death'. What else can go there?

EDIT: Mod wiki is finally back up. the two triggers listed are 'damage' and 'death'
__________________

Last edited by Old55; 05-04-2010 at 01:59 PM.
Old55 is offline   Reply With Quote
Old 05-04-2010, 07:52 PM   #2
eaxs

eaxs's Avatar
 
Join Date: May 2008
Location: Germany
Posts: 2,611
Thanks: 9
Thanked 40 Times in 24 Posts
Default

Quote:
RegisterEntityScript <entity name/index> <event> <script>
What it does:
Bind a script to an entity and a game "event". For example, "Run code x when player y takes damage".

Possible "event" arguments are:
  • "enter"
  • "leave"
  • "stay"
  • "damage"
  • "death"

Edit: Note that enter, leave and stay are used for proximity triggers only!

Last edited by eaxs; 05-04-2010 at 07:54 PM.
eaxs is offline   Reply With Quote
Old 05-05-2010, 01:12 PM   #3
Old55

Old55's Avatar
 
Join Date: Jun 2009
Posts: 2,586
Thanks: 14
Thanked 428 Times in 209 Posts
Default

Thanks! I was able to get everything working. It is kinda clunkly, but I have each melee hit giving a player some amount of exp.
__________________
Old55 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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



All times are GMT. The time now is 11:16 PM.