• 0

    posted a message on ActorSend() spoof source?

    @abvdzh: Go

    Oh, neat! Is there a way I can find out which events are only triggered from the actor system? Or, the converse, which events I Can send? Is there a way to activate/disable turrets with events? (I noticed a TurretEnable and TurretDisable event)

    Thanks for all the great info here, guys, it's helped me a bunch!

    Posted in: Galaxy Scripting
  • 0

    posted a message on ActorSend() spoof source?

    @greythepirate: Go

    What exactly am I trying to acomplish? Well at this point I don't really know. I'm just seeing what is/is not possible, given the limitations of both the starcraft engine, and the Cortex mod that I'm working in. Since I can only use data thats already defined due to using Cortex, I need to find more creative ways of doing things.

    In the Cortex mod I can issue any event at will to an actor. However, using the goliath again as an easy example, I can give it the "UnitBirth" event, but I can't seem to get it to respond to it. (i.e. I can't trigger the action) Looking in the data editor, and the Goliath actor, I see "UnitBirth.Goliath" will create a SoundEmitter "Goliath_Ambiance". I do not know what to send to the Goliath actor to make that happen, or If thats even possible without editing the actor data.

    Do you know more about the 'Source Name' field of the actor event trigger? How is it used and what's whe purpose of having it here?

    Posted in: Galaxy Scripting
  • 0

    posted a message on ActorSend() spoof source?

    Forgive me as I'm rather new to this, but is there a way to spoof the source of events generated from the ActorSend function?

    For example, the Goliath actor responds to the "UnitBirth". In the data editor it also specifies a "source", which in this case is "Goliath". The goliath then plays a sound when the message is recieved. Sending it the message "UnitBirth" doesn't do anything (I also tried UnitBirth.Goliath :/ ), and I'm assuming its this source field. There are also lots of other actors and events which filter events based on the source field it seems, browsing through the data editor.

    Is there a way that I could send an event in Galaxyscript to trigger this action? I realize that I could probably modify things in the data editor to achieve the same end result, however I'm not interested in a solution using the data editor.

    Any insight is appreciated!

    (For what its worth, the reason I'm only interested in galaxyscript is that its for the Cortex mod, a sandbox-ish mod some people use for roleplaying. so I'm stuck with data thats already defined in SC dependencies.)

    Posted in: Galaxy Scripting
  • To post a comment, please or register a new account.