lizardkid wrote:whats wrong with using the regular entity as-is? just assign a targetname and do whatever you want with it.
I see... just the script the entity by it's targetname, instead of using the script_object or script_model...
I'm using a script from the
Alsace map by VonderCrunch. In the Alsace map it uses a script_object and no model it's all brushes.
Code: Select all
$boat1 thread boat
$boat2 thread boat
* Placed in the map.scr below the "level waitTill prespawn" and before the "level waittill spawn"
* Number of boat threads depending on the number of boats you want to rock independently
The following should be place in the map.scr
below level waittil spawn and is the actual rocking script:
Code: Select all
//**********boat animation to rock the boat*************
boat:
while (1)
{
self time 4
self rotateyup 4
self rotatezup 4
self rotatexdown 2
self waitmove
self time 4
self rotateydown 4
self rotatezdown 4
self rotatexup 2
self waitmove
self time 4
self rotateydown 4
self rotatezdown 4
self rotatexup 3
self waitmove
self time 4
self rotateyup 4
self rotatezup 4
self rotatexdown 3
self waitmove
}
end
However my targetnamed entity simply doesn't work...