Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Aug 2014
C
Chumble Offline OP
stranger
OP Offline
stranger
C
Joined: Aug 2014
I created a lever in my level that spawns a character at a trigger location.

Code
IF
CharacterUsedItem(_char, ITEMGUID_PartyLever_67720f53-d2fe-4e32-a249-b595c55a4f5a)
THEN
CharacterCreateAtTrigger(TRIGGERGUID_Room1Spawner_c5c367f0-5bd7-4cf0-9a93-49b174aa1818, "CHARACTERGUID_Humans_Hero_Male_25611432-e5e4-482a-8f5d-196c9e90001e", 1);


But now I want to perform other actions on this created character. How can I obtain the ID of the character I just created with "CharacterCreateAtTrigger"?

Joined: Mar 2016
Location: Belgium
T
addict
Offline
addict
T
Joined: Mar 2016
Location: Belgium
Use GetPosition() to get the position of the trigger, and then the query CharacterCreateAtPosition(). That one returns the created character.


Moderated by  Larian_KVN 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5