Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need easy help with scripting
VivaciousWombat Offline
Junior Member

Posts: 3
Threads: 1
Joined: May 2012
Reputation: 0
#1
Need easy help with scripting

I want to make object, like knights, move from one place to another. How I go about doing that is I make the knight appear in different places which I have down. The problem is I don't know how to make the "moved" knights disappear, so I end up with way more than I should. Can someone help me make a script that makes entities such as knights disappear?
07-03-2012, 05:59 PM
Find Reply
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#2
RE: Need easy help with scripting

Use this:
SetEntityActive("knightnamehere", false);

This will make the knight, or any other sort of entity for that matter, disappear. If you need to work it the other way around, change "false" to "true", and your assigned entity will be visible.

Mess around with the "true", and "false" settings to achieve the illusion of moving knights.
(This post was last modified: 07-03-2012, 06:12 PM by Kreekakon.)
07-03-2012, 06:11 PM
Find Reply
VivaciousWombat Offline
Junior Member

Posts: 3
Threads: 1
Joined: May 2012
Reputation: 0
#3
RE: Need easy help with scripting

Thank you that works perfectly
07-03-2012, 06:53 PM
Find Reply




Users browsing this thread: 1 Guest(s)