Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » scripts when changing character
scripts when changing character [message #466812] Sat, 28 April 2012 12:11 Go to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
scripts do not get destroyed how do i know if a player changes char from the script point of view?

i wanted to destroy certain objects when the script owner dies or switches char (scripts get destroyed then i thought)


Owner of kambot TT server

kambot.freeforums.org
Re: scripts when changing character [message #466818 is a reply to message #466812] Sat, 28 April 2012 13:48 Go to previous messageGo to next message
E! is currently offline  E!
Messages: 70
Registered: February 2004
Karma: 0
Recruit
they are detached afaik.
use the case Detach(GameObject*obj) that should happen to both death and character change.


<<SCUD-Storm Origin Creator>>
Re: scripts when changing character [message #466823 is a reply to message #466812] Sat, 28 April 2012 14:14 Go to previous message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
yea that did it thnx

Owner of kambot TT server

kambot.freeforums.org

[Updated on: Sat, 28 April 2012 14:22]

Report message to a moderator

Previous Topic: defenses fire at each other
Next Topic: Question...
Goto Forum:
  


Current Time: Wed Dec 18 00:50:39 MST 2024

Total time taken to generate the page: 0.00624 seconds