Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Set location for spawned player, after death (Scripts.dll)
Set location for spawned player, after death (Scripts.dll) [message #116143] Wed, 22 September 2004 20:15 Go to next message
theplague is currently offline  theplague
Messages: 261
Registered: May 2004
Karma: 0
Recruit
How may i spaw a player at a certain location after death? (I have a script attached to the player)

eg. a person dies, i want him/her to goto X:100,Y:100,Z:5

the problem is, does the attached script get destoryed after the player it's attached to dies? or does it stay on the player until he/she leaves the game?


http://users.tpg.com.au/ling44/av_firefox.gifhttp://users.tpg.com.au/ling44/av_rg.gif
Set location for spawned player, after death (Scripts.dll) [message #116145] Wed, 22 September 2004 20:17 Go to previous messageGo to next message
xptek is currently offline  xptek
Messages: 1410
Registered: August 2004
Location: USSA
Karma: 0
General (1 Star)
I was wondering this some time ago as well.

Jonwil informed me it wasn't possible but I've seen it done.


cause = time
Set location for spawned player, after death (Scripts.dll) [message #116307] Thu, 23 September 2004 18:52 Go to previous messageGo to next message
theplague is currently offline  theplague
Messages: 261
Registered: May 2004
Karma: 0
Recruit
I know what you mean, i seen it done as well, it was for a cop and robber mod, the person dies and gets sent to jail (a certain location on the map) after spawn

maybe the way we're looking at it is wrong, maybe storing a "killed" var in another place, like using a text file for a buffer... i din't know, it'll be a little laggy though


http://users.tpg.com.au/ling44/av_firefox.gifhttp://users.tpg.com.au/ling44/av_rg.gif
Set location for spawned player, after death (Scripts.dll) [message #116308] Thu, 23 September 2004 19:01 Go to previous messageGo to next message
vloktboky is currently offline  vloktboky
Messages: 290
Registered: February 2003
Location: Kentucky, USA
Karma: 0
Recruit

Set up a vector to remember recorded names of players who die, and use a script attached to the character's preset to detect when they spawn (created) and when they are killed (destroy). When they are killed, add their name to the vector you set up. When they are created, check to see if their name is included in the vector and if so, set their position to wherever you want them to go.

http://www.sgi.com/tech/stl/Vector.html
Set location for spawned player, after death (Scripts.dll) [message #116345] Fri, 24 September 2004 00:58 Go to previous message
theplague is currently offline  theplague
Messages: 261
Registered: May 2004
Karma: 0
Recruit
Thank You x1 million
i'll try it out


http://users.tpg.com.au/ling44/av_firefox.gifhttp://users.tpg.com.au/ling44/av_rg.gif
Previous Topic: Cool Effect
Next Topic: RenX error
Goto Forum:
  


Current Time: Sat Dec 28 00:31:46 MST 2024

Total time taken to generate the page: 0.00676 seconds