Talk:GetActionRef
Jump to navigation
Jump to search
Returns Attacker[edit source]
So Kyoma says here that GetActionRef can return the last actor to attack the calling actor if called within a OnHit block! That's potentially extremely useful, are there any other undocumented uses of it? Does anyone care to test this new discovery?
Dragoon Wraith TALK 07:28, 2 May 2008 (EDT)
- Testing suggests Kyoma was probably mistaken. I've editted it back to how it was originally.
- SkyRanger-1 11:09, 2 May 2008 (EDT)
- Thanks for testing that. Please sign comments with ~~~~.
- Dragoon Wraith TALK 18:52, 2 May 2008 (EDT)
Condition?[edit source]
Not sure whether this can be used as a condition--Haama 18:36, 6 July 2007 (EDT)
- It only works from within an onTrigger/onActivate block, so no. Scruggs 13:49, 9 July 2007 (EDT)
Returns nothing?[edit source]
If nothing is trigger your object and you call getactionref , what does it return? Someone knows? --Vswe 11:47, 13 June 2008 (EDT)
- If there is no ActionRef to return, it should return 0. Thus this should work:
set refVar to GetActionRef if ( refVar ) ;blah blah else ; refVar == 0, hence there is no refVar ;whatever endif
- I haven't specifically tested GetActionRef for this, but that's how every other Record Variable Function works.
- Dragoon Wraith TALK 11:58, 13 June 2008 (EDT)
- Thanks for answearing. I also thought that but It didn't work. Now i found it was becuase the triggerbox was triggered by the room. --Vswe 14:24, 13 June 2008 (EDT)