Posts: 416
Threads: 84
Joined: Oct 2012
Reputation:
0
I made a script that you rob a shop then the player make an animation then a object is created in front of him
The problem is that i can't make the object be created in front of him , the object ID is : 1829
Posts: 1,079
Threads: 199
Joined: Jun 2013
Reputation:
0
Something like this perhaps:
new object;
new bool: etc...
if (robbing the store == 1)
{
object=create object (1829)
}
else if (robbing the store == 0)
{
deleteobject(object)
}
Not this exactly but like this.
Posts: 416
Threads: 84
Joined: Oct 2012
Reputation:
0
ok but their must be Position , like GetPlayerPos(x,y,z) then CreateObject(x+something ,y+something,z+something); , but i dunno why when i make them the object don't be created as it under the ground or something
Posts: 658
Threads: 32
Joined: Mar 2013
Reputation:
0
Are you sure it's in the same virtual world and interior? Also that's in not under the ground or above the ceiling?
What object is 1829? Sometimes you need to check maybe the object creates above you like z+5, so then instead of CreateObject at X,Y,Z, you will need to put X,Y,Z-5, I hope you understand what I mean..
Posts: 658
Threads: 32
Joined: Mar 2013
Reputation:
0
Why did you apply the ApplyAnimation twice? Maybe that's why it doesn't work(Just guessing).
It can't be the object's problem..
Posts: 416
Threads: 84
Joined: Oct 2012
Reputation:
0
Made it only one , but when i remove the Object , the Animation is done correctly