Linking "ambush" function to weapons
Moderator: Moderators
-
somen00b
Linking "ambush" function to weapons
Can it be done? I would like it for my 2nd map
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
RE: Linking "ambush" function to weapons
What do you mean? Every time a weapon is fired, an ambush occurs? Something like a detpack, but instead of exploding it releases units?
Keep in mind we only know how to spawn units on paths. We don't know how to create paths ingame (may be possible, but not yet attempted), so the location of any units spawning has to be defined in ZeroEdit (or by editing the world text files before munging).
Keep in mind we only know how to spawn units on paths. We don't know how to create paths ingame (may be possible, but not yet attempted), so the location of any units spawning has to be defined in ZeroEdit (or by editing the world text files before munging).
-
somen00b
What I idealy want is every time you fire a certain weapon it triggers preset ambushes, I am following the heros spawning troops thread. I want something like
onweaponfire (all_inf_ghost_caller)
ambush (ambush function stuff here)
if you can manage it, a team filter so an ambush only occurs if the empire owns a certain cp
something like
onweaponfire (all_inf_ghost_caller)
if cp10team=IMP then
ambush (ambush function stuff here)
though it's icing on the cake and I might not include it
onweaponfire (all_inf_ghost_caller)
ambush (ambush function stuff here)
if you can manage it, a team filter so an ambush only occurs if the empire owns a certain cp
something like
onweaponfire (all_inf_ghost_caller)
if cp10team=IMP then
ambush (ambush function stuff here)
though it's icing on the cake and I might not include it
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
