zzzornbringer Posted April 28, 2016 for reference, i try to use this function: http://zdoom.org/wiki/GetActorX what i want to do is get the actor position of a monster and spawn fireballs around it. it's not working. i actually tried to copy&paste the above example but it's not working at all. nothing happens when i trigger the function. could anyone explain how this works so that even an idiot is able to understand? 0 Share this post Link to post
Graf Zahl Posted April 28, 2016 Post your script. Otherwise we'd have to resort to guessing. 0 Share this post Link to post
zzzornbringer Posted April 28, 2016 i don't have a script. i pretty much used the example script but put it in a loop so it checks the actor position every 10 tics and changed the actor tid, so it spawns the objects around the monster and not around the player. 0 Share this post Link to post
Quineotio Posted April 28, 2016 zzzornbringer said:i don't have a script. i pretty much used the example script post it? 0 Share this post Link to post
zzzornbringer Posted April 28, 2016 Quineotio said:post it? it's under the link i've posted: script 1 (int count, int dist) { int basex = GetActorX (0); int basey = GetActorY (0); int angle, n; for (n = 0; n < count; n++) { angle = 1.0 * n / count; Spawn( "DoomImp", basex + dist * cos (angle), basey + dist * sin (angle), GetActorZ (0), 0, (angle + 0.5) >> 8 ); } } 0 Share this post Link to post
scifista42 Posted April 28, 2016 Put the following line at the very top of your entire SCRIPTS lump/window:#include "zcommon.acs" 0 Share this post Link to post
zzzornbringer Posted April 28, 2016 scifista42 said:Put the following line at the very top of your entire SCRIPTS lump/window:#include "zcommon.acs" that much i know. i even got something to spawn next to the actor but it's not circular around the actor. 0 Share this post Link to post
scifista42 Posted April 28, 2016 What arguments are you calling the script with? The script accepts 2 arguments, "count" and "dist", together influencing the appearance/behavior of the effect, and from the look of it, if "count" was 0, nothing would happen. 0 Share this post Link to post
zzzornbringer Posted April 29, 2016 i was using an actor special to execute the script. i actually don't know how i can run a script with arguments. edit: ok, tried it with some arguments. got the imps spawn inside me. testing some other numbers. thanks, i think i can go from here. 0 Share this post Link to post