Page 1 of 1

Can i select specific RPG character?

Posted: June 6th, 2010, 1:53 am
by porings
Can i select specific created spawned characters so that i can do something with them.
eg.
r_select 0
r_kill

this will select me and kill me right?
r_interact {
r_select $rpgself
r_kill
]

this will kill the spawned character when i interact with it right.

But if i've created a lot of spawned characters.

I wanted to kill one by one automatically.
Eg.
level_trigger_1 = [
r_select 0
r_kill
r_select 1
r_kill
r_select 2
r_kill
]
above is not applicable.
how to do it so that once i stepped on a trigger three characters including me and 2 spawned characters will die in that instant.

Re: Can i select specific RPG character?

Posted: June 7th, 2010, 4:48 am
by Leo_V117
I can cheat to do that... find a trapdoor model on quadropolis.us or whatever it is... Use the largest trapdoor and create a hole in the terrain at exactly the same size. Place the trapdoor so that the cross between terrain and the model is smooth and you do not step up... Create a room below the trapdoor and place the "Respawn" material directly below the trapdoor. Add a layer of terrain at g-size 1 above the trapdoor and select the entire layer and press "CTRL+N" that creates a noclip material. Select the trapdoor and press F3, set the trigger type to 11 and the trigger tag as 11, create a switch above the trapdoor and set it as model -1, trigger type 10 and trigger tag 11, test it and you should be able to walk accross the trapdoor until the switch is "Hit", spawn the 2 characters around the switch and save the map. It should have the desired effect.

Hope this helps.
- Leo

Re: Can i select specific RPG character?

Posted: June 8th, 2010, 8:12 am
by porings
Hey thx a lot Leo. Now i can try killing them with that.

However if i just wanna reduce thier life, is it possible?

Re: Can i select specific RPG character?

Posted: June 8th, 2010, 9:23 am
by arcones
I would try finding the source code for their health, and then try modifying it.