Jump to content

Help with keyword based Script


MPankey

Recommended Posts

For anyone who's interested, these are the codes the 2 upcoming tests we'll conduct.

 

Test 1: http://pastebin.com/RT3yBDzM (based on if the MineStartThrow animation name)

Test 2: http://pastebin.com/9eidHiC5 (an improved variation of the check ammo count script) <== money's on this one

 

Some tweaking may be necessary, but they show the general concept. If test 1 works it will be shortened somewhat depending on order of execution etc.

 

Edit: Found an error on line 61 (how remote events are received) of test 2. Due to this lines 61 and 62 are changed to:

Event ObjectReference.OnItemRemoved(Actor akSender, Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer)
	If (akSender == Game.GetPlayer() && akBaseItem == RDE_Mine.GetAmmo()) 

Also; Test 3: http://pastebin.com/FHLsy2Nk (a hack attempt to sort animation events)

Edited by timtimman
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...