a unit enters a region and has an item....

Whisp_Rush

Active Member
Reaction score
0
Hi! I'm new in editing maps, so I need some help. I don't now how to do the following: When a unit enters in an area, and has an object, the object has to be removed from it's inventory, and the same object has to be created in a region. The thing is that the unit has a bomb, what I made with the object manager, and when it has this bomb, and enters to a given region, the bomb should be auto-planted (remove the item from the unit´s inventory and be put on the ground).

I would be glad, if you could help me :)
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
this is what your trigger should look like:

Trigger:
  • Events
    • Unit enters MyRegion
    • Conditions
      • (Triggering Unit) has an item of type BOMB
    • Actions
      • Hero - Remove BOMB from (Triggering Unit)
      • set Temp_Point = (Center of (MyRect))
      • Item - Create BOMB at Temp_Point
      • custom script: call RemoveLocation (udg_Temp_Point)


try to make it and if it doesnt work out as intended copy your trigger and post it here.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top