Vonstorm
Member
After playing (with help) with Matt Ls Booby trap script, moving it to a right click option to grenades, I wondered if it couldn't be generalized with more vars to work with more items and effects. I have some programming experience, but mostly PHP and the syntax, Arma2 engine stuff and lack of time is making it difficult for me to get this done the way I would like.
anyway here is the overview of what I think it should do and how..
Now There may be barriers to this, but I know there are some extraordinary people on here, looking for a base frame that I can learn from and work with.
Thanks for your time
anyway here is the overview of what I think it should do and how..
Code:
script 1 - place Trigger item and trigger.
Variables:
- Item Clicked
- Item Placed
- Placement time
- Countdown Time - set to trigger placement
- Trigger Range
- Target Type (Unit, Player, Vehicle etc)
- Trigger effect
On right click of inventory item (DZE_click_actions) -
run animation - (and wait var placement time)
Remove item from inventory
Place visual item (item placed)
Place trigger (assign vars Range, Effect, Target type, run script detonate on trigger)
script 2 detonate
- Run effect (case based on trigger effect)
case trigger effect grenade then -
Case trigger effect flare then -
case trigger effect smoke then -
etc.
Now There may be barriers to this, but I know there are some extraordinary people on here, looking for a base frame that I can learn from and work with.
Thanks for your time