Jump to content

Geck script help


paha989

Recommended Posts

I am creating a house / testing area, and i need a script where an npc will spawn on X marker when switch is activated.

 

This is what i have currently tried to create

 

AANewSpawn = Xmarker REF

AAFiendEnemyMove = npc REF

 

-----------------------------------------------------------------------------------------------------------------------------------------

scn AAFiendSpawnScript

begin OnActivate

AANewSpawn.PlaceAtMe AAFiendEnemyMove 2

end

-----------------------------------------------------------------------------------------------------------------------------------------

Link to comment
Share on other sites

If you are just wanting to spawn an enemy when an activator is activated place the enemy into the cell where you want it to spawn. Double click the NPC and check Initially Disabled and give it a ref ID. the script you attach to the activator would be an enable script.

 

scn whateverSCRIPT

 

short DoOnce; if you only want it to happen once

 

Begin OnActivate Player

If (DoOnce == 0); hasn't happened yet only if using DoOnce

YourRefID.enable

Endif

Set DoOnce to 1; happened won't do it again only needed if using DoOnce

end

 

Hope that helps,

Geoff

Link to comment
Share on other sites

I manage to find this script and it works perfectly. :laugh:

Anyway thanks for replying. :smile:

 

scn "Name..."
short toggle

begin OnActivate
if toggle == 0
"NPCRef".resurrect
"NPCRef".Enable
"NPCRef".Moveto "Cap Ref"
set toggle to 1
else
"NPCRef".Disable
"NPCRef".Moveto "The other Cap Ref"
set toggle to 0
endif
end

Link to comment
Share on other sites

  • Recently Browsing   0 members

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