The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SCRIPT / MDL ED] Replace an entity / Creating a lamp
Mackiiboy Offline
Member

Posts: 101
Threads: 7
Joined: Jan 2012
Reputation: 11
#1
[SCRIPT / MDL ED] Replace an entity / Creating a lamp

[Image: ny8t5j.jpg]

I have been trying to make a sword start to glow while you're holding it in your hands. I have created two entities in the model editor, a regular sword, and a glowing one (with billboards etc). The main problem is to change the regular sword into a glowing one without dropping the sword to the ground. I have so far not found anything helpful in the "Engine scripts", and therefore asking you if you know any good methods to replace an entity with another one. If it's not possible to replace an entity with another one with Engine scripts, please tell me.

Another method I was thinking of was creating a grabbable sword-lamp (a sword entity with lamp-settings). When the sword is lit - the billboards appears and etc. I'm not sure if that will work tho, and even if it does, I'm not used to create lamps and do not really know how to do. I have been trying to connect the billboards to the sword, but I can't get it to work - nothing happens when you lit/unlit the sword. So, if you know how to create a lamp, or if it exists any custom-lamp-creating tutorials, please post a comment Shy
(This post was last modified: 03-07-2012, 08:46 PM by Mackiiboy.)
03-06-2012, 09:21 PM
Website Find


Messages In This Thread
[SCRIPT / MDL ED] Replace an entity / Creating a lamp - by Mackiiboy - 03-06-2012, 09:21 PM



Users browsing this thread: 2 Guest(s)