Alistaire: anyway will be easy than every time place the trigger_if for every weapon you've placed on the map?There is nothing hard to replace the item id, anyway, less triggers..
Maps/Editor
Ammoin/Ammo
Ammoin/Ammo
Alistaire: anyway will be easy than every time place the trigger_if for every weapon you've placed on the map?
triggerentity, add a trigger like "script_setammo 30 0" to each Env_Item you want to change ammo on then in the hook check the entity(x, y, "trigger") for the REGEX occurence of "script_setammo (.-) (.-)" and set the variables "ammoin" and "ammo" to those values, go through item(0, "table") to find all items with x and y positions supplied by the hook, item(itemID, "dropped") and itemtype supplied by entity(x, y, "intn") {where n is the value of the itemtype supplied by the entity, I'm not sure which it is to be honest}, and
setammo with the itemID returned by this loop, the value 0, the ammoin variable and the ammo variable.
Alistaire has written
Alistaire has written