About: Scripting FAQ   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

This list of scripting frequently asked questions (and answers) covers some common questions that are not easily categorized elsewhere.

AttributesValues
rdfs:label
  • Scripting FAQ
rdfs:comment
  • This list of scripting frequently asked questions (and answers) covers some common questions that are not easily categorized elsewhere.
  • In order to make an NPC disappear you need to add to NPC’s spawn set an empty phase and name it ‘gone’. All you have to do now (e.g. after a dialogue or just whenever you need it) is to change NPC’s phase to ‘gone’. Here’s the script: void main() { SetStoryNPCStoryPhase("spawnset_name", "gone"); } If you want to destroy an NPC you can do: a) teleport an object out of the location and then despawn/kill it. To teleport use ActionJumpToObject b) or you can use DestroyObject – but it doesn’t always work on creatures
dcterms:subject
abstract
  • This list of scripting frequently asked questions (and answers) covers some common questions that are not easily categorized elsewhere.
  • In order to make an NPC disappear you need to add to NPC’s spawn set an empty phase and name it ‘gone’. All you have to do now (e.g. after a dialogue or just whenever you need it) is to change NPC’s phase to ‘gone’. Here’s the script: void main() { SetStoryNPCStoryPhase("spawnset_name", "gone"); } If you want to destroy an NPC you can do: a) teleport an object out of the location and then despawn/kill it. To teleport use ActionJumpToObject b) or you can use DestroyObject – but it doesn’t always work on creatures
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software