Thread: Learning
View Single Post
  #8  
Old 09-04-2001, 04:20 AM
oscarjf1 oscarjf1 is offline
Registered User
Join Date: Aug 2001
Location: I live in the US
Posts: 107
oscarjf1 is on a distinguished road
Send a message via AIM to oscarjf1
i c

I think i c what youre saying....If youre between 2 points you want your weapon to work.

use this:

if (weaponfired) {
if (playerx in |<this is the number for as far left as its allowed>,<this is the number for far right>|) {
if (playery in |<this is min height that is allowed>,<this is max height allowed>) {you action here;
}
}
}

Of course, you replace the <>'s with values (normally numbers ).
Here is an example:

if (weaponfired) { // You use the weapon to shoot an arrow in the players direction.
if (playerx in |2,20|) { // The player is between the points of 2 and 20 on the x axis
if (playery in |10,30|) { // The player is between the points of 10 and 30 on the y axis
if (playerdarts>=1) {shootarrow playerdir;
}
}
}
}
__________________
I speek on behalf of my staff.
~laterz

Lagoonia Staff
-Tiki God Of Power
Reply With Quote