help with give script.

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
king_of_hi_ping
Corporal
Posts: 30
Joined: Wed Feb 05, 2003 7:17 pm

help with give script.

Post by king_of_hi_ping »

i have started scripting a hot potao mod...

player has a bomb stuck to his head .. and he has one minute to get rid of it ..to anothre player ..

thought i could glue a trigger to the local.bombguy and he would run to another player and that playerewould then trigger another script ..

problem is since the give trigger is glued to the local.bomb guy .. he will always be the one to set it off ... i tried to write a if or ealse for the triggger but still no luck ...

the script says if local.bombguy.(little more here forget) go to give.. so it just loops and wont go to the ealse.


is there a way to bind the trigger to front of the player so basicly it is not touching him .. but is simply in front. im new to binding and have not had much luck with it ...

any help here would be great ...
thanks
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think you need six triggers per player (one on each side), so that the player isn't touching it.
Image
king_of_hi_ping
Corporal
Posts: 30
Joined: Wed Feb 05, 2003 7:17 pm

Post by king_of_hi_ping »

thinking he just needs one in the front .. maybe on the two sides.... but how would i make them so they dont touch him ... bind ... ?? again im new to bind .. and so far it wont work for me .. everything gets left behind or shifted... is there an example or tut on it ..

thanks
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think you have to glue a script_origin to the player, then bind the triggers to that origin.
Image
Post Reply