Need help with my target range map
Moderator: Core Staff
Need help with my target range map
Im making a target range map. I made the targets, and I linked every trigger to its target and I scripted the targets to randomly come up one at a time. Now what I want is that when a player shoots the target, his score increases. (The score that is shown when you hold tab) Is that possible without modding? Is it possible at all?
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Need help with my target range map
Code: Select all
target waittill("damage", player);
player.score += scorePerTarget;

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Re: Need help with my target range map
In cod1, damage triggers can work with both "trigger" and "damage" notifies. With "damage", I was unable to get the entity that would cause damage. On the other hand, with "trigger", I only got the entity and couldn't get damage points. So maybe Drofder's code won't work and mine will do.
Code: Select all
target waittill("trigger", player);
player.score += scorePerTarget;
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Need help with my target range map
In CoD1megazor wrote:In cod1, damage triggers can work with both "trigger" and "damage" notifies. With "damage", I was unable to get the entity that would cause damage. On the other hand, with "trigger", I only got the entity and couldn't get damage points. So maybe Drofder's code won't work and mine will do.
Code: Select all
target waittill("trigger", player); player.score += scorePerTarget;
Code: Select all
ent waittill("damage", idamage, player);

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Re: Need help with my target range map
Ye, i did try something like
trig waittill("damage", lol, omg, wtf, etc);
but i couldn't get it.
trig waittill("damage", lol, omg, wtf, etc);
but i couldn't get it.
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Need help with my target range map
Hmm, maybe it was introduced in UO or CoD2. I have definitly done it pre-CoD4.megazor wrote:Ye, i did try something like
trig waittill("damage", lol, omg, wtf, etc);
but i couldn't get it.

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Re: Need help with my target range map
Yes, it works in CoD2 and therefore, obviously, in next cod games. Just tested. Sexy developers.
Who is online
Users browsing this forum: No registered users and 3 guests