Jump to content

Photo

How do I code if an item is used something happens


  • Please log in to reply
1 reply to this topic

#1 LikeLike888

LikeLike888

    Spicy food lover!!

  • Members
  • Real Name:Jason
  • Location:North America

Posted 02 March 2018 - 10:34 PM

Such as

if blue bomb is used

{

  whatever I want to happen happens;

}



#2 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 02 March 2018 - 11:32 PM

You should probably do this as an item script, if using the item is the basis for any action.

 

If you want to do something whenever a specific weapon is on-screen, you need to scan for it in a loop, try to detect it, and do whatever you want thereafter.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users