Difference between revisions of "Talk:GetCombatTarget"
Jump to navigation
Jump to search
imported>Shademe (Finding out the PC's Targets ?) |
imported>Antares (Possible Solution (this instance) for combat targets and the player.) |
||
Line 3: | Line 3: | ||
Can this be done ''remotely'' and the references returned to the originating script ( say a token script running elsewhere on an NPC ) ? -- [[User:Shademe|shademe]] 02:05, 4 October 2008 (EDT) | Can this be done ''remotely'' and the references returned to the originating script ( say a token script running elsewhere on an NPC ) ? -- [[User:Shademe|shademe]] 02:05, 4 October 2008 (EDT) | ||
:Right now the only thing I can think of would be to indirectly script the player (as directly scripting the player is messy business). Let me elaborate, you could possibly add a scripted ability to the player that retrieves any NPC's within a certain proximity as references. Once that has been done you can check their combat targets then process the appropriate code. You probably won't want to be running the script every frame of gamemode so you could see this article [[Making a GameMode script run at second intervals | here]]. I believe you may also find [[Casting Spells From An Activator | this]] article to be helpful. Hope it all goes well for you. | |||
:[[User:Antares|Antares]] 00:09, 5 October 2008 (EDT) |
Revision as of 23:09, 4 October 2008
How : Finding the player's Combat Targets ?
How do I find out who's in combat with the pC without having a script running on the target ( in form of a token or a script attached to the target ).
Can this be done remotely and the references returned to the originating script ( say a token script running elsewhere on an NPC ) ? -- shademe 02:05, 4 October 2008 (EDT)
- Right now the only thing I can think of would be to indirectly script the player (as directly scripting the player is messy business). Let me elaborate, you could possibly add a scripted ability to the player that retrieves any NPC's within a certain proximity as references. Once that has been done you can check their combat targets then process the appropriate code. You probably won't want to be running the script every frame of gamemode so you could see this article here. I believe you may also find this article to be helpful. Hope it all goes well for you.
- Antares 00:09, 5 October 2008 (EDT)