Thread: TriggerAction
View Single Post
  #4  
Old 07-02-2001, 04:32 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Farming Example

Here is an example from my farming script im making:


//Water Can by Warcaptain
if (playertouchsme) toweapons Water Can;
if (weaponfired) {
triggeraction playerx+1.5+vecx(playerdir)*2,
playery+2+vecy(playerdir)*2,iswatered,;
this.water--;
}


// Plant by Warcaptain
if (actioniswatered) {
this.life--;
sleep 1;
}

It baisicly triggers the given action on the given X Y

Of course thats a simple version of my script

Im not giving you all of it, or it wouldnt be mine anymore
Reply With Quote